package com.article.service.base;

import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/4/13.
 */
public interface BaseService<T> {
    Long countTotal(Map<String, Object> map);

    PageInfo<T> listByPage(Integer pageIndex, Integer limit, Map<String, Object> map);

    List<T> listByMap(Map<String, Object> map);

    T getById(Long id);

    T getByMap(Map<String, Object> map);
}
